

#include <GLES/gl.h>
#include <GLES/glext.h>
#include <GLES/glplatform.h>

///////////
// kisme //
///////////

// asset
#include "../../util/asset/Asset_Adapter.h"
// draw's base class
#include "../base/Draw_Base.h"
// data 2d texture part
#include "../../data/manage/TwoD_Manage.h"

#ifndef _GLES1_BASE_H
#define _GLES1_BASE_H

/** data-list's type */
typedef TwoD_TexCan TYPE_TEXCAN;

/**
 *  config info
 */
struct GLES1_Base_Conf : public Draw_Base_Conf {
    /** 配置数组的类型定义 */
    typedef float CONFTYPE;
    // 配置数组
    CONFTYPE* m_tConfs;
        
    GLES1_Base_Conf();
    
};

class GLES1_Base : public Draw_Base
{
public:
    /**
     * 通过assetadapter读出asset内的图片
     */
    int gles1_loadTexture();
    
    /**
     * 画纹理
     */
    int gles1_drawTexture();

    /**
     * construction
     * init conf-file
     */
    GLES1_Base();
private:
    // data manager for 2d data
    TwoD_Manage* m_c2D_Manage;
    // store texture and store's logic
    TYPE_TEXCAN* m_cTexCan;
    
    GLES1_Base_Conf* m_sGLES1_Base_Conf;
    
};

#endif





